﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FastKnow.Cache
{
    /// <summary>
    /// 永不过期的缓存策略
    /// </summary>
    [Serializable]
    public class NullCacheDependency : ICacheDependency
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public NullCacheDependency()
        {
        }

        #region ICacheDependency Members

        /// <summary>
        /// 是否已过期（永远返回<c>false</c>）
        /// </summary>
        public bool IsExpired
        {
            get
            {
                return false;
            }
        }

        /// <summary>
        /// 重置缓存策略（相当于重新开始缓存）
        /// </summary>
        public void Reset()
        {
        }

        #endregion
    }
}
